#!/bin/sh
echo "Hexo Blog Install helper v1.0"
echo "2018-4-29 21:03:27 updated"
# sudo ln -fs /bin/bash /bin/sh
read -p "Please input any key to start install(Ctrl+c to Cancel)"
sudo apt-get install -y git
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install stable
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g hexo-cli
hexo init HexoBlog
cd HexoBlog
cnpm install
hexo d -g
sudo ufw disable
hexo server
echo "Finish Install HexoBlog"
